package star.cloud.asme.base.utils;

public class StringUtil {

    public static String getExtensionName(String originalFilename) {
        boolean contains = originalFilename.contains(".");
        if (!contains) {
            throw new RuntimeException("文件名不规范");
        }
        String[] split = originalFilename.split("\\.");
        return split[split.length - 1];
    }

    public static Boolean equals(Character c1, Character c2) {
        return c1.equals(c2);
    }

    public static Boolean equals(String s1, String s2) {
        return s1.equals(s2);
    }

    public static Boolean notEquals(Character c1, Character c2) {
        return !c1.equals(c2);
    }

    public static Boolean notEquals(String s1, String s2) {
        return !s1.equals(s2);
    }
}